
#ifndef _ZT_MP3_H_
#define _ZT_MP3_H_

#include "SoftwareSerial.h"
#include "Arduino.h"

class ZT_MP3
{
	public:
    ZT_MP3();
    ~ZT_MP3();
    void begin(SoftwareSerial *serial, int rx, int tx);
    void mp3_volume(uint8_t level);
    void mp3_play_chapter(uint16_t chapter);
    void mp3_play();
    void mp3_next_song();
    void mp3_last_song();
    void mp3_vol_up();
    void mp3_vol_dn();
    void mp3_stop();
    void mp3_pause();
    void mp3_loop_play();
    void mp3_loop_single_play();
    void mp3_single_stop();
    void mp3_random_play();
    void mp3_order_play();

  private:
    SoftwareSerial *_serialS=NULL;
    int rpin = -1;
    int tpin = -1;
    void write(uint8_t data[], uint16_t len);
};

#endif 
